from .command import CommandNode
from .node import connect

def compile(source, target):
    n = CommandNode(
        command='g++ -c {target[0]} -c {source[0]}')
    source.connect(n).connect(target)
    return n

